Skip to content

Demonstrate that less-than-all features will build#314

Merged
IsaacWoods merged 1 commit into
rust-osdev:mainfrom
martin-hughes:i311-alleged-link-fault
Jul 25, 2026
Merged

Demonstrate that less-than-all features will build#314
IsaacWoods merged 1 commit into
rust-osdev:mainfrom
martin-hughes:i311-alleged-link-fault

Conversation

@martin-hughes

Copy link
Copy Markdown
Contributor

As discussed in #311, I've added a test program to check that the crate is usable without alloc.

This is pretty belt-and-braces - there's two sections to this.

  1. The workflow tests compilation with the various possible combinations of features
  2. I've added a "no_alloc_check" executable along the lines of what I wrote in PhysicalMapping cannot be dereferenced. #311. This really is a check that the crate doesn't expose any linker requirement on alloc. I'm not sure that Rust would even allow that, but we might as well check.

@IsaacWoods

Copy link
Copy Markdown
Member

Looks good, thanks Martin!

@IsaacWoods
IsaacWoods merged commit 8176652 into rust-osdev:main Jul 25, 2026
6 checks passed
@martin-hughes
martin-hughes deleted the i311-alleged-link-fault branch July 25, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants